package org.example.base.websocket.model;

import org.example.core.annotation.Table;

import java.io.Serializable;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Date;

/**
 * Description: 聊天消息体
 * Date: 2024/1/19 21:44
 */
public class MessageChatModel implements Serializable {
    private String id;
    /**
     * 消息发送的状态：going｜failed｜succeed
     */
    private String status;
    /**
     * 消息类型：file｜image｜text｜event
     */
    private Object type;
    /**
     * 消息发送时间
     */
    private Date sendTime;
    /**
     * 消息内容，如果type=file，此属性表示文件的URL地址
     */
    private String content;
    /**
     * 文件大小
     */
    private int fileSize;
    /**
     * 文件名称
     */
    private String fileName;
    /**
     * 接受消息的联系人ID
     */
    private String toContactId;
    /**
     * 消息发送人的信息
     */
    private Object fromUser;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Object getType() {
        return type;
    }

    public void setType(Object type) {
        this.type = type;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getFileSize() {
        return fileSize;
    }

    public void setFileSize(int fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getToContactId() {
        return toContactId;
    }

    public void setToContactId(String toContactId) {
        this.toContactId = toContactId;
    }

    public Object getFromUser() {
        return fromUser;
    }

    public void setFromUser(Object fromUser) {
        this.fromUser = fromUser;
    }
}
